﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class AutoData {

    public int id;
    public int type;
    public Vector3 Positon;
    public int CurMapIndex;
    public AutoData(string id, Dictionary<string, string> Dic,int MapIndex)
    {
        this.id = int.Parse(id);
        this.type = int.Parse(Dic["Type"]);
        string[] posStr = Dic["Position"].Split(' ');
        Positon.x = int.Parse(posStr[0]);
        Positon.y = int.Parse(posStr[1]);
        CurMapIndex = MapIndex;
    }
}
